﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="原料附件.aspx.cs" Inherits="syc.Store.原料附件" %>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">
<div id="wintop" class="wintop">原料相关附件</div>
<asp:Panel ID="Panel1" runat="server" CssClass="panel">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" >
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" >
    </asp:SqlDataSource>
    
    <asp:Label ID="Label_List" runat="server" Text="" Visible="false"></asp:Label>
    <asp:Label ID="Label_Page" runat="server" Text="1" Visible="false"></asp:Label>
    
    <asp:Button ID="Button_PD" runat="server" Text="复检判定单" CssClass="button" Font-Bold="false"
        UseSubmitBehavior="false" onclick="Button_PD_Click"/>
    <asp:Button ID="Button_DH" runat="server" Text="货登记表" CssClass="button" 
        Font-Bold="false" Visible="false"
        UseSubmitBehavior="false" onclick="Button_DH_Click"/>
        
    <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />
   
   <span style="display:inline-block;width:120px;text-align:center">共：<asp:Label ID="Label_CheShu" runat="server" Text=""></asp:Label> 车</span>
    
    <asp:Button ID="Button_Prev" runat="server" Text="<<上一张" CssClass="button" Visible="false" Font-Bold="false"
        UseSubmitBehavior="false" onclick="Button_Prev_Click"/>
    <asp:Button ID="Button_Next" runat="server" Text="下一张>>" CssClass="button" Visible="false" Font-Bold="false"
        UseSubmitBehavior="false" onclick="Button_Next_Click"/>
        
    
    
</asp:Panel>
<asp:Panel ID="Panel_Msg" runat="server" CssClass="panel2" Visible="false">
    <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
</asp:Panel>

<asp:Panel ID="Panel2" runat="server" CssClass="panel3">
<script>putBillHead();</script>

<asp:Panel ID="Panel3" runat="server">
<table border="0" cellpadding="0" style="border-collapse: collapse;text-align:center;font-size:14px;">
<tr>
<td height="34" colspan="8" style="font-size:22px;"><b><asp:Label ID="Label_Title" runat="server" Text="管材到货登记表"></asp:Label></b></td>
</tr>
<tr>
<td height="24" colspan="8" align="left">
<asp:DataList ID="DataList1" runat="server"
DataSourceID="SqlDataSource1" RepeatDirection="Horizontal" RepeatLayout="Flow">
<ItemTemplate>
<span style="width:160px;margin-left:10px;">供货单位：<%# Eval("供货单位")%></span>
<span style="width:140px;margin-left:5px;"><%# Eval("品名") %>(钢级:<%# Eval("钢级") %>)</span>
<span style="width:120px;margin-left:5px;">规格：<%# Eval("规格") %></span>
<span style="width:120px;margin-left:5px;">车号：<%# Eval("车号")%></span>
<span style="width:140px;margin-left:5px;">编码：SYC/ZJ-WL-07</span>
<span id="zzs" style="display:none;"><%# Eval("支数")%></span>
<span id="zzl" style="display:none;"><%# Eval("重量")%></span>
<span id="zbl" style="display:none;"><%# Eval("磅量")%></span>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
<tr>
<td width="90" height="24" class="solid">到货日期</td>
<td width="90" class="solid">炉号</td>
<td width="90" class="solid">批次</td>
<td width="90" class="solid">重量(吨)</td>
<td width="100" class="solid">实际磅量(吨)</td>
<td width="90" class="solid">支数</td>
<td width="80" class="solid">区域</td>
<td width="90" class="solid">使用分厂</td>
</tr>
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource2">
<ItemTemplate>
<tr>
<td height="22" class="solid"><%# Eval("到货日期", "{0:yyyy-MM-dd}")%></td>
<td class="solid"><%# Eval("炉号")%></td>
<td class="solid"><%# Eval("批次")%></td>
<td class="solid"><%# Eval("重量")%></td>
<td class="solid"><%# Eval("磅重")%></td>
<td class="solid"><%# Eval("支数")%></td>
<td class="solid"><%# Eval("区域")%></td>
<td class="solid"><%# Eval("使用单位")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%
    int i;
    for (i = 0; i < 15 - Repeater1.Items.Count; i++)
    {
%>
<tr>
<td class="solid" height="22">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid">　</td>
</tr>
<%
    }
%>
<tr>
<td class="solid" height="22">合计</td>
<td class="solid">　</td>
<td class="solid">　</td>
<td class="solid"><script>document.write(document.getElementById("zzl").innerHTML);</script></td>
<td class="solid"><script>document.write(document.getElementById("zbl").innerHTML);</script></td>
<td class="solid"><script>document.write(document.getElementById("zzs").innerHTML);</script></td>
<td class="solid">　</td>
<td class="solid">　</td>
</tr>
<tr>
<td>　</td>
<td>　</td>
<td>　</td>
<td>　</td>
<td>　</td>
<td>　</td>
<td>　</td>
<td>　</td>
</tr>
</table>
</asp:Panel>

<asp:Panel ID="Panel4" runat="server" Visible="false">
<asp:DataList ID="DataList2" runat="server"
DataSourceID="SqlDataSource1" RepeatDirection="Horizontal" RepeatLayout="Flow">
<ItemTemplate>
<table border="0" cellpadding="0" style="border-collapse: collapse;font-size:14px;text-align:center;">
<tr>
<td colspan="8" height="30" style="font-size:20px;"><b>原材料复检判定单</b></td>
</tr>
<tr>
<td colspan="8" align="right" style="padding-right:10px;">记录编号：SYC/ZJ-JZ-20</td>
</tr>
<tr>
<td colspan="4" align="left" style="padding-left:10px;">供货厂家：<%# Eval("供货单位")%></td>
<td colspan="4" align="right" style="padding-right:10px;"><%# Eval("到货日期", "{0:D}")%></td>
</tr>
<tr>
<td class="solid" width="80" height="24">合同编号</td>
<td class="solid" colspan="2">　</td>
<td class="solid" width="90">产品名称</td>
<td class="solid" width="90"><%# Eval("品名")%></td>
<td class="solid" width="90">执行标准</td>
<td class="solid" colspan="2">API Spec 5CT</td>
</tr>
<tr>
<td class="solid" height="24">钢级</td>
<td class="solid" width="90">J55</td>
<td class="solid" width="60">规格</td>
<td class="solid" colspan="2"><%# Eval("规格")%></td>
<td class="solid">交货状态</td>
<td class="solid" colspan="2">热轧</td>
</tr>
<tr>
<td class="solid" height="24">炉号</td>
<td class="solid"> </td>
<td class="solid">车号</td>
<td class="solid"><%# Eval("车号")%></td>
<td class="solid">重量</td>
<td class="solid"><%# Eval("磅量")%></td>
<td class="solid" width="60">支数</td>
<td class="solid" width="60"><%# Eval("支数")%></td>
</tr>
<tr>
<td class="solid" colspan="2" height="24">抗拉强度Rm MPa</td>
<td class="solid" colspan="2">屈服强度Ys MPa</td>
<td class="solid" colspan="2">伸长率δ %</td>
<td class="solid" colspan="2">化学成分</td>
</tr>
<tr>
<td class="solid" colspan="2" height="24"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
</tr>
<tr>
<td class="solid" colspan="2" height="24">尺寸检验</td>
<td class="solid" colspan="2">外观检查</td>
<td class="solid" colspan="2">通径试验</td>
<td class="solid" colspan="2">无损探伤</td>
</tr>
<tr>
<td class="solid" colspan="2" height="24"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
<td class="solid" colspan="2"><b>合格</b></td>
</tr>
<tr>
<td class="solid" height="70">综合判定</td>
<td class="solid" colspan="4" style="border-right:none;" align="left"><b>合格</b></td>
<td class="solid" colspan="3" style="border-left:none;" align="left" valign="bottom"><div style="margin:0px 0px 5px 10px;">判定员：<%# Eval("质检员")%></div></td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
<div style="text-align:right;">
<img src="/images/pdz.png" style="margin-top:-65px;margin-right:30px;" />
</div>
</asp:Panel>
<script>putBillFoot();</script>

</asp:Panel>

</form>
</body>
</html>
